Salesforce UX API icon

Salesforce UX API

(0 reviews)

TMF654- topupBalance towards Matrixx

Create Topup towards Matrixx (Rating system)

URL
https://[localhost]:[port]/sfdc-ux/v1/{businessId}/topupBalance
Param
nametypedescriptionrequired
businessIdstring2 letter ISO 3166 country code (TT, BB, JM, PA, etc.) identifying the business unit.Y
namevaluedescriptionrequired
client_idstringThe client_id identifying the channel. Minimum characters: 5Y
client_secretstringPassword associated with the client_id. Minimum characters: 5Y
lobstringThe Line of Business Identifier currently available are:
FIXED
PREPAID
POSTPAID
Y
channeIdstringChannel to business:
Can be one of: "SFDC-B2C”, “SFDC-B2B"
Y
targetSystemStringThis describes the end system request is for Eg: “Aria”, “Matrixx”.Y
X-Correlation-IDstringIdentifier that correlates HTTP request between a client and server.
Any identification model (UUDI, checksum, etc.) can be used, as long as it is a unique value to differentiate a transaction.
Y
Request
{
    "id": "ABC1111",
    "amount": {
        "amount": 1,
        "units": "USD"
    },
    "voucher": "fake-valid-nonce",
    "product": [
        {
            "id": "",
            "name": "RechargeOffer",
            "@type": "Offer"
        }
    ],
    "relatedParty": [
        {
            "id": "628935575",
            "@type": "PaymentGatewayUserId"
        },
        {
            "id": "0",
            "@type": "PaymentGatewayId"
        },
        {
            "id": "374373",
            "@type": "OrderItemId"
        }
    ],
    "partyAccount": {
        "id": "00116335_0000637717",
        "@type": "SubscriptionRef"
    },
    "channel": {
        "name": "sfdc-b2c",
        "id": ""
    }
}
Definitions

Each of the request parameters is detailed.

nametypedescriptionrequired
idstringThe unique order id used in the authorise or settlement request. This can be used to track the transaction and aids duplicate checking.N
amountQuantityAn amount in a given unitY
amount.amountstringTop-Up AmountY
amount.unitsstringUnitN
productarrayA reference to the Product associated with this bucket.N
product.idstringunique identifierN
product.namestringName of the related entity.N
product.@typestringWhen sub-classing, this defines the sub-class Extensible nameN
partyAccountobjectPartyAccount reference. A party account is an arrangement that a party has with an enterprise thatY
partyAccount.idstringEither subscriber by ExternalID or associated device access numberY
partyAccount.@typestringWhen sub-classing, this defines the sub-class entity nameN
voucherNonce to use for authorization.
Note - Either "PaymentMethodResourceId" or "voucher" only allow. Both should not allow
Y*
relatedPartyarrayUsed to provide information about any other entity with relation to the operationY
relatedParty.idUnique identifier of a related entity.Y
relatedParty values
nametypedescriptionrequired
PaymentGatewayUserIdstringIdentifier for the customer id on the payment gateway.Y
PaymentGatewayIdstringIdentifier for the specific payment gateway. If not supplied, the default payment gateway will be used.",Y
OrderItemIdstringOrder Item IdY
Response
{
    "id": "ABC1111",
    "confirmationDate": "2024-05-13T06:48:43.000Z",
    "status": "Approved",
    "amount": {
        "amount": 1,
        "units": "USD"
    },
    "voucher": "fake-valid-nonce",
    "product": [
        {
            "id": "0",
            "name": "RechargeOffer",
            "@type": "Offer"
        }
    ],
    "validFor": {
        "endDateTime": "65535-12-31T23:59:59.999999Z",
        "startDateTime": "2023-10-05T11:37:49.000Z"
    },
    "relatedParty": [
        {
            "id": "628935575",
            "@type": "PaymentGatewayUserId"
        },
        {
            "id": "0",
            "@type": "PaymentGatewayId"
        },
        {
            "id": "374373",
            "@type": "OrderItemId"
        },
        {
            "id": "121",
            "@type": "PaymentResourceIdRef"
        }
    ],
    "bucket": {
        "id": "1",
        "name": "Prepaid Balance"
    },
    "impactedBucket": [
        {
            "amountAfter": 1.12,
            "name": "Total Amount",
            "item": [
                {
                    "amount": 0.11,
                    "name": "STATE SALES TAX"
                },
                {
                    "amount": 0.01,
                    "name": "CITY SALES TAX"
                }
            ]
        }
    ],
    "partyAccount": {
        "id": "00116335_0000637717",
        "@type": "SubscriptionRef"
    }
}
Definitions

Each of the request parameters is detailed.

nametypedescriptionrequired
confirmationDatedatetimeDate when the deduction was confirmed in the serverN
statusstringValid values for the Action Status TypeN
validForobjectA period of time, either as a deadline (endDateTime only) a startDateTime only, or bothN
validFor.startDateTimedatetimeStart time of the balance. For a periodic or on-demand balance, it is the start time of the period. For a simple balance, it is the start validity time of the balance.",N
validFor.endDateTimedatetimeEnd time of the balance. For a periodic or on-demand balance, it is the end time of the period. For a simple balance, it is the end validity time of the balance.",N
bucketobjectlink to the resource that holds bucket informationN
bucket.idstringResource ID of balance instance.N
bucket.namestringName of balance template as defined in My MATRIXX.N
impactedBucketarrayA list of impacted bucketsN
impactedBucket.amountAfterQuantityAmount of balance update.N
impactedBucket.namestringTotal AmountN
impactedBucket.itemarrayA list of impacted bucket itemsN
impactedBucket.item.amountQuantityAmount of balance update.N
impactedBucket.item.namestringTax nameN
and concatenated the complete request bodyN

Reviews